//
// Created by Administrator on 2020/6/17 0017.
//

#ifndef SECURITY1_AESUTILS_H
#define SECURITY1_AESUTILS_H

#include <jni.h>
#include "android_utils.h"

#ifdef __cplusplus
extern "C" {
#endif

jstring
decryptByBytes(JNIEnv *jniEnv, jobject thiz, jstring password, jbyteArray content, jstring charset,
               jstring model, jbyteArray iv);

jbyteArray
encryptToBytes(JNIEnv *jniEnv, jobject thiz, jstring password, jstring content, jstring charset,
               jstring model, jbyteArray iv);

jbyteArray
test(JNIEnv *jniEnv, jobject thiz, jobject jstr);

jstring encrypt(JNIEnv *jniEnv, jobject thiz, jstring password, jstring content, jstring model,
                jbyteArray iv);

//  public static String decrypt(String password, String content, String model, byte[] iv)
jstring decrypt(JNIEnv *jniEnv, jobject thiz, jstring password, jstring content, jstring model,
                jbyteArray iv);

#ifdef __cplusplus
}
#endif

#endif //SECURITY1_AESUTILS_H
